﻿using System.ComponentModel;
using System.Windows.Forms;
using NGridDrawer.Draw;

namespace NGridDrawer.Components
{
    /// <LastUpdate author="Blaise Braye" Date="15/06/2008 20:42"/>
    /// <summary>
    /// Provide a user friendly interface to manage a data grid printing process
    /// </summary>
    public class DataGridViewNativeDrawerComponent :
        DataGridViewAbstractDrawerComponent
    {
        /// <summary>
        /// 	<para>Initializes an instance of the <see cref="DataGridViewNativeDrawerComponent"/> class.</para>
        /// </summary>
        public DataGridViewNativeDrawerComponent()
        {
        }

        /// <summary>
        /// 	<para>Initializes an instance of the <see cref="DataGridViewNativeDrawerComponent"/> class.</para>
        /// </summary>
        /// <param name="container">
        /// </param>
        public DataGridViewNativeDrawerComponent(IContainer container)
            : base(container)
        {
        }


        /// <summary>
        /// initialize a <see cref="DataGridViewAbstractDrawer"/> object
        /// </summary>
        /// <param name="gridView">Grid of data which must be drawn
        /// </param>
        /// <returns>
        /// <see cref="DataGridViewAbstractDrawer"/> object initialized
        /// </returns>
        protected override DataGridViewAbstractDrawer InitializeController(DataGridView gridView)
        {
            return new DataGridViewNativeDrawer(gridView);
        }
    }
}